#ifndef MEDICALRECORDS_H
#define MEDICALRECORDS_H

#include <QWidget>
#include <QTcpSocket>
#include <QVBoxLayout>
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>
#include <QTextEdit>

class MedicalRecords : public QWidget
{
    Q_OBJECT

public:
    MedicalRecords(QTcpSocket *socket, QWidget *parent = nullptr);

private slots:
    void onQueryButtonClicked();
    void onBackButtonClicked();

private:
    QTcpSocket *tcpSocket;
    QLineEdit *patientIdEdit;
    QLineEdit *patientNameEdit;
    QTextEdit *recordDisplay;
};

#endif // MEDICALRECORDS_H
